package classfile

type ConstantIntegerInfo struct {
	tag uint8
	val int32
}

func (self *ConstantIntegerInfo) readInfo(reader *ClassReader) {
	self.tag = 3
	bytes := reader.readUint32()
	self.val = int32(bytes)
}

func (self *ConstantIntegerInfo) Value() int32 {
	return self.val
}
